package models

import (
	"gorm.io/gorm"
)

type Video struct {
	gorm.Model
	Title        string
	AuthorId     int64
	CoverUrl     string
	Likes        int64
	CollectCount int64
}

func (v *Video) AddVideo(db *gorm.DB) error {
	return db.Create(&v).Error
}
